package cn.yunyichina.provider.pay.service;


import org.springframework.util.StringUtils;

import java.util.Map;

/**
 * Created by Lullaby on 2017/2/23.
 */
public class BaseAuthConfigService {

    protected boolean checkWechatWebAuthConfigParameters(Map<String, String> params) {
        if (StringUtils.isEmpty(params.get("app_id")) ||
                StringUtils.isEmpty(params.get("access_token")) ||
                StringUtils.isEmpty(params.get("current_url"))) {
            return false;
        }

        return true;
    }

}
